<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>div标签</title>
    <style type="text/css">
        .one{
            width: 600px;
            height: 50px;
            background: aqua;
            font-size: 20px;
            font-weight: bold;
            text-align: center;
        }
        .two{
            width: 600px;
            height: 100px;
            background: lime;
            font-size: 14px;
            text-indent: 2em;
        }
    </style>
</head>
<body>
<div class="one">
    用div标签设置标题文本
</div>
<div class="two">
    <p>div标签中嵌套p标签的文本内容</p>
</div>
</body>
</html>